package com.qm.console.pubdef.pubenum;

/**
 * @Author :  ZhChNing
 * @Descriptiom :
 * @Date Created in 2019/9/4 16:02
 */
public enum WithdrawStateEnum {
    Apply(0, "待审核"),
    Rejected(1, "审核驳回"),
    Agree(2, "审核通过"),
    Succeed(3, "已打款"),
    Fail(4, "打款失败"),

    ;
    private Integer state;
    private String desc;

    WithdrawStateEnum(Integer state, String desc) {
        this.state = state;
        this.desc = desc;
    }

    public String desc() {
        return this.desc;
    }


    public Integer state() {
        return this.state;
    }

    public static WithdrawStateEnum getWithdrawStateEnum(Integer state) {
        for (WithdrawStateEnum stateEnum : values()) {
            if (stateEnum.state.equals(state)) {
                return stateEnum;
            }
        }
        return null;
    }

}
